<?php
namespace Admin\Model;

class HptCityModel extends CommonModel{
    
    //获取城市--一维数组
    public function getCityRow(){
        $row = array();
        $arr = $this->order('id asc')->select();
        foreach($arr as $v){
            $row[$v['id']] = $v['name'];
        }
        return $row;
    }
    
}